import Vuex from 'vuex'

export default Vuex.createStore({
  state: { // 仓储
    // url: ''
    routerParams: {}
  },
  mutations: {
    changeView (state, payload) {
      console.log(payload)
      // state.url = payload.url
      state.routerParams = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
